package wx.wx.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@XStreamAlias("xml")
public class NewsMessage extends BaseMessage {
    @XStreamAlias("ArticleCount")
    private String ArticleCount;
    @XStreamAlias("Articles")
    private List<Article> article = new ArrayList<>();

    public NewsMessage(Map<String, String> requestMap,List<Article> article) {
        super(requestMap);
        this.setMsgType("news");
        this.ArticleCount=article.size()+"";
        this.article = article;
    }

    public String getArticleCount() {
        return ArticleCount;
    }

    public void setArticleCount(String articleCount) {
        ArticleCount = articleCount;
    }

    public List<Article> getArticle() {
        return article;
    }

    public void setArticle(List<Article> article) {
        this.article = article;
    }
}
